﻿@model IEnumerable<CloudFranceTriple.Models.PublisherSet>

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.PublisherIndexTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="content-padding">
    <h1><a href="/gaming/game">@CloudFranceTriple.WebRole.Properties.Resources.GameIndexTitle</a><span> - </span>@CloudFranceTriple.WebRole.Properties.Resources.MenuPublisher<span>- </span><a href="/gaming/gamegroup">@CloudFranceTriple.WebRole.Properties.Resources.MenuGameGroup</a></h1>
    <p></p>
    <section>
        <p>
            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.PublisherButtonCreate, "Create")
        </p>
        <table>
            <tr>
                <th>
                    @CloudFranceTriple.WebRole.Properties.Resources.PublisherName
                </th>
                <th>
                    @CloudFranceTriple.WebRole.Properties.Resources.PublisherOfficialWebSite
                </th>
                <th></th>
            </tr>

            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.NamePublisher)
                    </td>
                    <td>
                        <a target="_blank" href="@item.OfficialWebSitePublisher">@Html.DisplayFor(modelItem => item.OfficialWebSitePublisher)</a>
                    </td>
                    <td>
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDetails, "Details", new { id = item.Id }) |
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", new { id = item.Id }) |
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete, "Delete", new { id = item.Id })
                    </td>
                </tr>
            }
        </table>
    </section>
    <p>
        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.PublisherButtonCreate, "Create")
    </p>
    <h1><a href="/gaming/game">@CloudFranceTriple.WebRole.Properties.Resources.GameIndexTitle</a><span> - </span>@CloudFranceTriple.WebRole.Properties.Resources.MenuPublisher<span>- </span><a href="/gaming/gamegroup">@CloudFranceTriple.WebRole.Properties.Resources.MenuGameGroup</a></h1>
    <br />
</div>
